package com.csx.springcloud.governance.sentinel.config;

import org.springframework.beans.factory.SmartInitializingSingleton;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author cuisongxu
 * @date 2023/2/3 13:57
 */
@Configuration
public class SentinelConfiguration {

    @Bean
    public SmartInitializingSingleton processSentinelDegradeState() {
        return SentinelDegradeState::registerDegradeStateChangeObserver;
    }
}
